﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TestProject;

namespace TestProject1
{
  [TestClass]
  public class UnitTest1
  {
    [TestMethod]
    public void GetRollDiceTest()
    {
      var listValue = new List<int>();
      var business = new Business();
      for (int i = 0; i < 100; i++)
      {
        var diceValue = business.GetRollDice();
        Assert.IsTrue(diceValue > 0 && diceValue < 7);
        listValue.Add(diceValue);
      }

      for (int i = 1; i <= 6; i++)
      {
        Assert.IsTrue(listValue.Contains(i), "List not contains " + i);
      }
    }
  }
}
